//
//  ZtCodec2.h
//  ZtCodec2
//
//  Created by Gao Peng on 13-6-19.
//  Copyright (c) 2013年 Gao Peng. All rights reserved.
//

#import <Foundation/Foundation.h>


#define FRAME_SAMPE_SIZE    320
#define ENCODE_FRAME_SIZE     128
#define WAVE_FRAME_BYTE_SIZE    640
#define WAVE_FRAME_SHORT_SIZE   320

@interface NlsZtEncoder2 : NSObject {
    void * pEnc;
}
-(id) init;
-(void) dealloc;
-(int) encode: (short*) samples toBytes:(unsigned char*)bytes ofLength:(int)length;

@end


@interface NlsZtDecoder2 : NSObject {
    void * pDec;
}
-(id) init;
-(id) initWithSampleRate:(int)sampleRate;
-(void) dealloc;
-(int) decode: (unsigned char*)bytes ofLength:(int)length toSamples:(short*)samples ofSampleLength:(int)sampleLength;

@end
